﻿@{
  ViewBag.Title = "项目运营";
  Layout = "~/Views/Shared/_Layout.cshtml";
}
@section mystyle{

}
<!-- search -->
<div class="content margin-top-20" id="search-box">
  <div class="container">
    <div class="row">
      <div class="col-sm-12">
        <div class="box padding-top-10 padding-bottom-10">
          <form class="form-inline">
            <div class="form-group">
              <label for="" class="margin-left-10">项目名称</label>
              <input type="search" name="search" id="search" class="form-control margin-left-10">


            </div>

            <div class="form-group">
              <label for="" class="margin-left-10">时间</label>
              <div class="datepk-box c-select vm w240 pop-style vm margin-left-10">
                <input type="text" name="" id="" readonly class="datepk form-control">
                <span class="c-select-btn"></span>
              </div>

              <span class="padding-left-10 padding-right-10 vm">至</span>

              <div class="datepk-box c-select vm w240 pop-style vm">
                <input type="text" name="" id="" readonly class="datepk form-control">
                <span class="c-select-btn"></span>
              </div>
              <!--<div class="input-group input-daterange search-date">
                <input type="text" class="form-control" name="" id="">
                <span class="input-group-addon">至</span>
                <input type="text" class="form-control" name="" id="">
              </div>-->
              <label for="search"><span class="glyphicon glyphicon-search margin-10 font-16"></span></label>
            </div>

          </form>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- table -->
<div class="padding-top-10 padding-bottom-10 margin-top-20">
  <div class="container">
    <div class="row">

      <div id="table" class="col-sm-12 margin-top-20">
        <table class="table text-center" id="listTable"></table>
      </div>

      <div class="col-sm-12 clearfix">
        <!--<div class="pages"></div>-->
        <p class="float-left">总条数：<span id="totalRow">20</span></p>

        <div class="table-pagination float-right line-height-34 margin-left-10 text-center" id="pages"></div>

        <div class="float-right">
          <form class="form-inline">
            <span>显示条数：</span>
            <select name="pageSize" id="pageSize" class="form-control">
              <option value="10">10</option>
              <option value="20">20</option>
              <option value="30">30</option>
            </select>
          </form>
        </div>


      </div>
    </div>
  </div>
</div>

<!-- 审批 -->
<div class="modal fade" id="approve" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content padding-10">
      <div class="text-right">
        <a class="close-pop" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span></a>
      </div>
      <div class="text-center">
        <h3>是否通过审批</h3>
        <div class="margin-top-20">
          <button type="button" class="btn btn-success w70" id="pass" data-dismiss="modal">通过</button>
          <button type="button" class="btn btn-danger margin-left-10 w70" id="noPass" data-dismiss="modal">不通过</button>
        </div>

      </div>
    </div>
  </div>
</div>

<!-- 项目人员配置 -->
<div class="modal fade" id="projectStaff" role="dialog" aria-hidden="true" data-backdrop="static" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content padding-10 w700">
      <div class="text-right">
        <a class="close-pop" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span></a>
      </div>
      <div>
        <div class="row">
          <div class="col-sm-12"><h3 class="margin-10">项目人员配置</h3></div>
        </div>
        <form class="form-horizontal">
          <div class="form-group">
            <label for="td1" class="col-sm-3 control-label">项目经理</label>
            <div class="col-sm-8">
              <select name="td1" id="td1" style="width: 100%;"></select>
            </div>
          </div>
          <div class="form-group">
            <label for="td2" class="col-sm-3 control-label">项目运营</label>
            <div class="col-sm-8">
              <select name="td2" id="td2" style="width: 100%;" multiple></select>
            </div>
          </div>
          <div class="form-group">
            <label for="td3" class="col-sm-3 control-label">老师</label>
            <div class="col-sm-8">
              <select name="td3" id="td3" style="width: 100%;" multiple></select>
            </div>
          </div>

          <div class="form-group">
            <div class="col-sm-3 col-sm-offset-3">
              <button type="button" class="btn btn-danger btn-block" id="saveStaff">保存</button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>

<script id="l3List" type="text/html">
  <thead>
    <tr>
      <th></th>
      <th>项目名称</th>
      <th>项目类型</th>
      <th>项目时间</th>
      <th>项目阶段</th>
      <!--<th>状态</th>-->
      <th class="w250">操作</th>
    </tr>
  </thead>
  <tbody>
    {{each $data}}
    <tr>
      <td>{{$index + 1}}</td>
      <td>{{$value.Name}}</td>
      <td>{{$value.ProjectType}}</td>
      <td>{{$value.StartDate}} - {{$value.EndDate}}</td>
      <!--<td>{{$value.PrincipalName}}</td>-->
      <td>{{$value.State}}</td>
      <td>
        <a class="btn btn-success plan">讲师分配</a>
        <a class="btn btn-success cost">成本录入</a>
      </td>
    </tr>
    {{/each}}
  </tbody>
</script>


@section myscript{
  <script src="~/Content/js/bind3.js"></script>
}